package cate.game.role.res.compose;

import cate.game.role.Role;
import cate.game.role.RoleDependent;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "合成")
public class ComposePO extends RoleDependent {

    @NoteField(value = "物品合成")
    public ItemCompose itemCompose;

    public ComposePO() {
    }

    @Override
    public void initialize(Role role) {
        super.initialize(role);
        if(itemCompose == null){
            itemCompose = new ItemCompose();
        }
        itemCompose.initialize(role);
    }

    @Override
    public void onDaySpan(boolean silence) {
        super.onDaySpan(silence);
        itemCompose.onDaySpan(silence);
    }

    @Override
    public void onWeekSpan(boolean silence) {
        super.onWeekSpan(silence);
        itemCompose.onWeekSpan(silence);
    }

    @Override
    public void onMonthSpan(boolean silence) {
        super.onMonthSpan(silence);
        itemCompose.onMonthSpan(silence);
    }
}
